<div class="form-group">
    <label class="col-sm-2 control-label Validform_label">表单布局</label>
    <div class="col-sm-4">
        <label class="radio-inline i-checks">
            <input type="radio" name="set[layout]" value="2" /> 双列
        </label>
        <label class="radio-inline i-checks">
            <input type="radio" name="set[layout]" value="1" checked /> 单列
        </label>
    </div>
    <label class="col-sm-2 control-label Validform_label">表单长度</label>
    <div class="col-sm-4">
        <input type="text" class="form-control" placeholder="请输入表单长度"
               name="set[size]" value="4"/>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label Validform_label">字段类型</label>
    <div class="col-sm-4">
        <select id="custom-field-type" class="form-control">
            <option value="">不设置字段</option>
            <option value="VARCHAR(255) NOT NULL DEFAULT ''">VARCHAR</option>
            <option value="INT(11) NOT NULL DEFAULT 0">INT</option>
            <option value="MEDIUMINT(9) NOT NULL DEFAULT 0">MEDIUMINT</option>
            <option value="SMALLINT(6) NOT NULL DEFAULT 0">SMALLINT</option>
            <option value="TINYINT(4) NOT NULL DEFAULT 0">TINYINT</option>
            <option value="DECIMAL(10,2) NOT NULL DEFAULT 0">DECIMAL</option>
            <option value="FLOAT(10,2) NOT NULL DEFAULT 0">FLOAT</option>
            <option value="MEDIUMTEXT">MEDIUMTEXT</option>
            <option value="TEXT">TEXT</option>
        </select>
    </div>
    <label class="col-sm-2 control-label Validform_label">执行SQL</label>
    <div class="col-sm-4">
        <input type="text" name="set[fieldsql]" class="form-control" id="fieldsql" value=""/>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label Validform_label">自定义方法</label>
    <div class="col-sm-10">
        <input type="text" name="set[custom]" class="form-control" value=""/>
    </div>
</div>

<script>
    $("#custom-field-type").change(function () {
        var fieldsql = $(this).val();
        $('#fieldsql').val(fieldsql);
    });
    $("#custom-field-type").trigger("change"); //加载触发
    iCheck();
</script>
